function successResponse(obj = [], message = 'ok') {
    return {
        code: 0,
        data: obj,
        msg: message
    }
}

function errorResponse(obj = null, message = 'error') {
    return {
        code: 1,
        data: null,
        msg: message
    }
}

module.exports = {
    successResponse,
    errorResponse,
}